package com.mdinfo.gw.door.bean

import com.baomidou.mybatisplus.activerecord.Model
import com.baomidou.mybatisplus.annotations.TableName
import java.io.Serializable
import java.util.*

/**
 * Created by Administrator on 2018/1/11.
 */
@TableName("door")
data class Door(
        var id:Int = 0,                 //主键
        var devId:String = "",          //设备编号
        var name:String = "",           //门名称
        var doorAccessId:Int = 0,       //门禁id
        var accessOrderNum:Int? = null,  //门禁中的编号
        var deptId:Int = 0,             //部门id
        var createTime:Date? = null,    //创建时间
        var lng:Double = 0.0,           //位置经度
        var lat:Double = 0.0,           //位置纬度
        var lastEvent:Int? = null,      //门的上次事件(0:进门,1:出门,2:无效卡)
        var lastEventTime:Date? = null  //上次状态更新时间

) : Model<Door>() {
    override fun pkVal(): Serializable {
        return this.id
    }
}